#region Summary

// 
// Owner : JackieHan 
// 
// Solution : Jackie.Utility
// 
// Project : Jackie.Utility
// 
// File : JsonDataForJQGrid.cs
// 
// CopyRight : Copyright © 2010-2011 Skomart Corporation, All Rights Reserved 
// 
// Summary : JsonDataForJQGrid
// 
// History : 
//			2010-10-18 19:58:03	    Create 
// 

#endregion

#region Using

using System;
using System.Collections.Generic;

#endregion

namespace Jackie.Utility.JQuery.Grid
{
    /// <summary> 
    /// JsonDataForJQGrid
    /// </summary>
    public class JsonDataForJQGrid
    {
        public JsonDataForJQGrid(int currentPage,int totalPagesCount,int totalRowCount,int actualRows)
        {
            this.page = currentPage;
            this.total = totalPagesCount;
            this.records = totalRowCount;
            this.rows = new JsonRowForJQGrid[actualRows];
        }

        /// <summary>
        /// 总页数
        /// </summary>
        public int total { get; set; }
        /// <summary>
        /// 当前页
        /// </summary>
        public int page { get; set; }
        /// <summary>
        /// 总记录数
        /// </summary>
        public int records { get; set; }
        public JsonRowForJQGrid[] rows { get; set; }
    }

    public class JsonRowForJQGrid
    {
        public string id { get; set; }
        public object[] cell { get; set; }
    }
}